package com.harmony.pilot.knowledge.repository;

import com.harmony.pilot.knowledge.entity.BundleJson;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * Bundle.json Repository
 */
@Repository
public interface BundleJsonRepository extends JpaRepository<BundleJson, Long> {
    
    Optional<BundleJson> findByFilePath(String filePath);
    
    List<BundleJson> findBySubsystem(String subsystem);
    
    Optional<BundleJson> findByComponentName(String componentName);
    
    List<BundleJson> findByNameContaining(String name);
}

